\hypertarget{classdb_student}{
\section{db\-Student \-Class \-Reference}
\label{classdb_student}\index{db\-Student@{db\-Student}}
}
\subsection*{\-Public \-Member \-Functions}
\begin{DoxyCompactItemize}
\item 
\hyperlink{classdb_student_aebb23af7c9b40659d7bffc83a9558cf6}{get\-All\-Students} ()
\item 
\hyperlink{classdb_student_a27df38dffd072b572a3463622a836b84}{check\-Student\-I\-D} (\$s)
\item 
\hyperlink{classdb_student_a35ce5c3464cada5f9bcea6c3f35ea593}{update\-Student} (\$s)
\item 
\hyperlink{classdb_student_a0ea57b8451957650f9ce3e5039c0d09c}{delete\-Student} (\$s)
\item 
\hyperlink{classdb_student_a556b7638b15222861ca4261f44b8b97d}{get\-Student\-I\-D} (\$s)
\item 
\hyperlink{classdb_student_aeeee0a05e6c9d1db437ad89a2456f66c}{get\-Fname} (\$s)
\item 
\hyperlink{classdb_student_a71fc0ac7012b15521b719e8b99127995}{get\-Lname} (\$s)
\item 
\hyperlink{classdb_student_a0810baf3e6dac1a968f8c2190b31200f}{get\-Username} (\$s)
\item 
\hyperlink{classdb_student_a7314d026fca21b7dc0510f7260d82245}{get\-Current\-G\-P\-A} (\$s)
\item 
\hyperlink{classdb_student_ad14ca94dba806569eaa7020f27095b2a}{get\-Major} (\$s)
\item 
\hyperlink{classdb_student_a1aeb23bfa8b032ec0b36703c3c4591c8}{get\-Year\-Status} (\$s)
\item 
\hyperlink{classdb_student_a4b783b6213aadf63d0752d6a706c3719}{get\-Graduation\-Year} (\$s)
\item 
\hyperlink{classdb_student_a783b5f50f154a92d03147e9049b24cc7}{get\-Got\-Hired} (\$s)
\item 
\hyperlink{classdb_student_a1afa2e6785543ce04e6c8260955e3005}{get\-Student} (\$student\-I\-D)
\end{DoxyCompactItemize}
\subsection*{\-Static \-Public \-Member \-Functions}
\begin{DoxyCompactItemize}
\item 
static \hyperlink{classdb_student_aea6c4d653e217f31256ded5783ed58f4}{create\-Table} ()
\item 
static \hyperlink{classdb_student_a389409c5c52d38d325ac86a45a4ecf7c}{add\-Student} (\$s, \&\$id)
\item 
static \hyperlink{classdb_student_aaaca33ac319178544c7cc9df0d9f1578}{get\-All\-By\-I\-D} (\$id, \&\$output)
\end{DoxyCompactItemize}


\subsection{\-Detailed \-Description}
\-Communicates with the \hyperlink{class_student}{\-Student} control file to know which student data to get and set. \-It is the only file that has the \-S\-Q\-L queries and \-My\-S\-Q\-L connections

\begin{DoxyCopyright}{\-Copyright}
2011 by \-Dan, \-Steven, \-Brice, \-Mike, and \-Aaron. \-This program is part of \hyperlink{class_internship}{\-Internship} 2 \-Career, which is free software. \-It comes with absolutely no warranty. \-You can redistribute or modify it under the terms of the \-G\-N\-U \-General \-Public \-License as published by the \-Free \-Software \-Foundation (\-For more information, see $<$\href{http://www.gnu.org/licenses/}{\tt http\-://www.\-gnu.\-org/licenses/}).
\end{DoxyCopyright}
\begin{DoxyVersion}{\-Version}
\-February 10, 2011
\end{DoxyVersion}
\begin{DoxyAuthor}{\-Author}
\-Steven \-Simard, \-Brice \-Rader and \-Aaron \-Jarzombeck \-Represents student data stored in the \hyperlink{classdb_student}{db\-Student} table. 
\end{DoxyAuthor}


\-Definition at line 22 of file db\-Student.\-php.



\subsection{\-Member \-Function \-Documentation}
\hypertarget{classdb_student_a389409c5c52d38d325ac86a45a4ecf7c}{
\index{db\-Student@{db\-Student}!add\-Student@{add\-Student}}
\index{add\-Student@{add\-Student}!dbStudent@{db\-Student}}
\subsubsection[{add\-Student}]{\setlength{\rightskip}{0pt plus 5cm}static add\-Student (
\begin{DoxyParamCaption}
\item[{\$}]{s, }
\item[{\&\$}]{id}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}static\mbox{]}}}}
\label{classdb_student_a389409c5c52d38d325ac86a45a4ecf7c}
\-Adds data from the student table.


\begin{DoxyParams}[1]{\-Parameters}
student & {\em \$s} & \-The data to be added. \-It has values for all the columns in the table, including primary key value.\\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{\-Returns}
true if the query is successful. 
\end{DoxyReturn}


\-Definition at line 312 of file db\-Student.\-php.

\hypertarget{classdb_student_a27df38dffd072b572a3463622a836b84}{
\index{db\-Student@{db\-Student}!check\-Student\-I\-D@{check\-Student\-I\-D}}
\index{check\-Student\-I\-D@{check\-Student\-I\-D}!dbStudent@{db\-Student}}
\subsubsection[{check\-Student\-I\-D}]{\setlength{\rightskip}{0pt plus 5cm}check\-Student\-I\-D (
\begin{DoxyParamCaption}
\item[{\$}]{s}
\end{DoxyParamCaption}
)}}
\label{classdb_student_a27df38dffd072b572a3463622a836b84}
\-Checks if \-I\-D exists.


\begin{DoxyParams}[1]{\-Parameters}
\hyperlink{class_student}{\-Student} & {\em \$s} & identifies student object\\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{\-Returns}
true if the query is successful. 
\end{DoxyReturn}


\-Definition at line 87 of file db\-Student.\-php.

\hypertarget{classdb_student_aea6c4d653e217f31256ded5783ed58f4}{
\index{db\-Student@{db\-Student}!create\-Table@{create\-Table}}
\index{create\-Table@{create\-Table}!dbStudent@{db\-Student}}
\subsubsection[{create\-Table}]{\setlength{\rightskip}{0pt plus 5cm}static create\-Table (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}static\mbox{]}}}}
\label{classdb_student_aea6c4d653e217f31256ded5783ed58f4}
\-Creates the table corresponding to this database controller.

\begin{DoxyReturn}{\-Returns}
true if \-My\-S\-Q\-L server does not report any error. \-Otherwise, prints out the error and returns false. 
\end{DoxyReturn}


\-Definition at line 31 of file db\-Student.\-php.

\hypertarget{classdb_student_a0ea57b8451957650f9ce3e5039c0d09c}{
\index{db\-Student@{db\-Student}!delete\-Student@{delete\-Student}}
\index{delete\-Student@{delete\-Student}!dbStudent@{db\-Student}}
\subsubsection[{delete\-Student}]{\setlength{\rightskip}{0pt plus 5cm}delete\-Student (
\begin{DoxyParamCaption}
\item[{\$}]{s}
\end{DoxyParamCaption}
)}}
\label{classdb_student_a0ea57b8451957650f9ce3e5039c0d09c}
\-Deletes data from the student table.


\begin{DoxyParams}[1]{\-Parameters}
student & {\em \$s} & \-The data to be deleted. \-It has values for all the columns in the table, including primary key value.\\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{\-Returns}
true if the query is successful. 
\end{DoxyReturn}


\-Definition at line 163 of file db\-Student.\-php.

\hypertarget{classdb_student_aaaca33ac319178544c7cc9df0d9f1578}{
\index{db\-Student@{db\-Student}!get\-All\-By\-I\-D@{get\-All\-By\-I\-D}}
\index{get\-All\-By\-I\-D@{get\-All\-By\-I\-D}!dbStudent@{db\-Student}}
\subsubsection[{get\-All\-By\-I\-D}]{\setlength{\rightskip}{0pt plus 5cm}static get\-All\-By\-I\-D (
\begin{DoxyParamCaption}
\item[{\$}]{id, }
\item[{\&\$}]{output}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}static\mbox{]}}}}
\label{classdb_student_aaaca33ac319178544c7cc9df0d9f1578}
\-Gets the got\-Hired details of a specified internship. 
\begin{DoxyParams}[1]{\-Parameters}
get\-Got\-Hired & {\em \$val} & \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{\-Returns}
object \-Returns 0 on failure, or a \hyperlink{class_internship}{\-Internship} object on success 
\end{DoxyReturn}


\-Definition at line 386 of file db\-Student.\-php.

\hypertarget{classdb_student_aebb23af7c9b40659d7bffc83a9558cf6}{
\index{db\-Student@{db\-Student}!get\-All\-Students@{get\-All\-Students}}
\index{get\-All\-Students@{get\-All\-Students}!dbStudent@{db\-Student}}
\subsubsection[{get\-All\-Students}]{\setlength{\rightskip}{0pt plus 5cm}get\-All\-Students (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}}
\label{classdb_student_aebb23af7c9b40659d7bffc83a9558cf6}
\-Retrieves all the data from table students

\begin{DoxyReturn}{\-Returns}
\-Resource object that contains retrieved data. \-If query is fails, it returns false. 
\end{DoxyReturn}


\-Definition at line 65 of file db\-Student.\-php.

\hypertarget{classdb_student_a7314d026fca21b7dc0510f7260d82245}{
\index{db\-Student@{db\-Student}!get\-Current\-G\-P\-A@{get\-Current\-G\-P\-A}}
\index{get\-Current\-G\-P\-A@{get\-Current\-G\-P\-A}!dbStudent@{db\-Student}}
\subsubsection[{get\-Current\-G\-P\-A}]{\setlength{\rightskip}{0pt plus 5cm}get\-Current\-G\-P\-A (
\begin{DoxyParamCaption}
\item[{\$}]{s}
\end{DoxyParamCaption}
)}}
\label{classdb_student_a7314d026fca21b7dc0510f7260d82245}


\-Definition at line 234 of file db\-Student.\-php.

\hypertarget{classdb_student_aeeee0a05e6c9d1db437ad89a2456f66c}{
\index{db\-Student@{db\-Student}!get\-Fname@{get\-Fname}}
\index{get\-Fname@{get\-Fname}!dbStudent@{db\-Student}}
\subsubsection[{get\-Fname}]{\setlength{\rightskip}{0pt plus 5cm}get\-Fname (
\begin{DoxyParamCaption}
\item[{\$}]{s}
\end{DoxyParamCaption}
)}}
\label{classdb_student_aeeee0a05e6c9d1db437ad89a2456f66c}


\-Definition at line 192 of file db\-Student.\-php.

\hypertarget{classdb_student_a783b5f50f154a92d03147e9049b24cc7}{
\index{db\-Student@{db\-Student}!get\-Got\-Hired@{get\-Got\-Hired}}
\index{get\-Got\-Hired@{get\-Got\-Hired}!dbStudent@{db\-Student}}
\subsubsection[{get\-Got\-Hired}]{\setlength{\rightskip}{0pt plus 5cm}get\-Got\-Hired (
\begin{DoxyParamCaption}
\item[{\$}]{s}
\end{DoxyParamCaption}
)}}
\label{classdb_student_a783b5f50f154a92d03147e9049b24cc7}


\-Definition at line 290 of file db\-Student.\-php.

\hypertarget{classdb_student_a4b783b6213aadf63d0752d6a706c3719}{
\index{db\-Student@{db\-Student}!get\-Graduation\-Year@{get\-Graduation\-Year}}
\index{get\-Graduation\-Year@{get\-Graduation\-Year}!dbStudent@{db\-Student}}
\subsubsection[{get\-Graduation\-Year}]{\setlength{\rightskip}{0pt plus 5cm}get\-Graduation\-Year (
\begin{DoxyParamCaption}
\item[{\$}]{s}
\end{DoxyParamCaption}
)}}
\label{classdb_student_a4b783b6213aadf63d0752d6a706c3719}


\-Definition at line 276 of file db\-Student.\-php.

\hypertarget{classdb_student_a71fc0ac7012b15521b719e8b99127995}{
\index{db\-Student@{db\-Student}!get\-Lname@{get\-Lname}}
\index{get\-Lname@{get\-Lname}!dbStudent@{db\-Student}}
\subsubsection[{get\-Lname}]{\setlength{\rightskip}{0pt plus 5cm}get\-Lname (
\begin{DoxyParamCaption}
\item[{\$}]{s}
\end{DoxyParamCaption}
)}}
\label{classdb_student_a71fc0ac7012b15521b719e8b99127995}


\-Definition at line 206 of file db\-Student.\-php.

\hypertarget{classdb_student_ad14ca94dba806569eaa7020f27095b2a}{
\index{db\-Student@{db\-Student}!get\-Major@{get\-Major}}
\index{get\-Major@{get\-Major}!dbStudent@{db\-Student}}
\subsubsection[{get\-Major}]{\setlength{\rightskip}{0pt plus 5cm}get\-Major (
\begin{DoxyParamCaption}
\item[{\$}]{s}
\end{DoxyParamCaption}
)}}
\label{classdb_student_ad14ca94dba806569eaa7020f27095b2a}


\-Definition at line 248 of file db\-Student.\-php.

\hypertarget{classdb_student_a1afa2e6785543ce04e6c8260955e3005}{
\index{db\-Student@{db\-Student}!get\-Student@{get\-Student}}
\index{get\-Student@{get\-Student}!dbStudent@{db\-Student}}
\subsubsection[{get\-Student}]{\setlength{\rightskip}{0pt plus 5cm}get\-Student (
\begin{DoxyParamCaption}
\item[{\$}]{student\-I\-D}
\end{DoxyParamCaption}
)}}
\label{classdb_student_a1afa2e6785543ce04e6c8260955e3005}
\-Gets all the student information for a specified \-I\-D.


\begin{DoxyParams}[1]{\-Parameters}
int & {\em \$student\-I\-D} & \-I\-D of the student you want to get.\\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{\-Returns}
true if the query is successful. 
\end{DoxyReturn}


\-Definition at line 354 of file db\-Student.\-php.

\hypertarget{classdb_student_a556b7638b15222861ca4261f44b8b97d}{
\index{db\-Student@{db\-Student}!get\-Student\-I\-D@{get\-Student\-I\-D}}
\index{get\-Student\-I\-D@{get\-Student\-I\-D}!dbStudent@{db\-Student}}
\subsubsection[{get\-Student\-I\-D}]{\setlength{\rightskip}{0pt plus 5cm}get\-Student\-I\-D (
\begin{DoxyParamCaption}
\item[{\$}]{s}
\end{DoxyParamCaption}
)}}
\label{classdb_student_a556b7638b15222861ca4261f44b8b97d}


\-Definition at line 185 of file db\-Student.\-php.

\hypertarget{classdb_student_a0810baf3e6dac1a968f8c2190b31200f}{
\index{db\-Student@{db\-Student}!get\-Username@{get\-Username}}
\index{get\-Username@{get\-Username}!dbStudent@{db\-Student}}
\subsubsection[{get\-Username}]{\setlength{\rightskip}{0pt plus 5cm}get\-Username (
\begin{DoxyParamCaption}
\item[{\$}]{s}
\end{DoxyParamCaption}
)}}
\label{classdb_student_a0810baf3e6dac1a968f8c2190b31200f}


\-Definition at line 220 of file db\-Student.\-php.

\hypertarget{classdb_student_a1aeb23bfa8b032ec0b36703c3c4591c8}{
\index{db\-Student@{db\-Student}!get\-Year\-Status@{get\-Year\-Status}}
\index{get\-Year\-Status@{get\-Year\-Status}!dbStudent@{db\-Student}}
\subsubsection[{get\-Year\-Status}]{\setlength{\rightskip}{0pt plus 5cm}get\-Year\-Status (
\begin{DoxyParamCaption}
\item[{\$}]{s}
\end{DoxyParamCaption}
)}}
\label{classdb_student_a1aeb23bfa8b032ec0b36703c3c4591c8}


\-Definition at line 262 of file db\-Student.\-php.

\hypertarget{classdb_student_a35ce5c3464cada5f9bcea6c3f35ea593}{
\index{db\-Student@{db\-Student}!update\-Student@{update\-Student}}
\index{update\-Student@{update\-Student}!dbStudent@{db\-Student}}
\subsubsection[{update\-Student}]{\setlength{\rightskip}{0pt plus 5cm}update\-Student (
\begin{DoxyParamCaption}
\item[{\$}]{s}
\end{DoxyParamCaption}
)}}
\label{classdb_student_a35ce5c3464cada5f9bcea6c3f35ea593}
\-Updates student information.


\begin{DoxyParams}[1]{\-Parameters}
\hyperlink{class_student}{\-Student} & {\em \$s} & \-The student to be updated\\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{\-Returns}
true if the query is successful. 
\end{DoxyReturn}


\-Definition at line 109 of file db\-Student.\-php.



\-The documentation for this class was generated from the following file\-:\begin{DoxyCompactItemize}
\item 
\-C\-:/\-Users/\-Jon/\-Downloads/\-O\-O\-P/db-\/control/\hyperlink{db_student_8php}{db\-Student.\-php}\end{DoxyCompactItemize}
